@charset "UTF-8";
@import url('displaFlex');

@safeWidth:1100px;        //安全宽度

@safeMainColor:#01cbe9;       //主题颜色
@safeMinorColor:#ff6f6e;       //主题颜色

@borderColor:#dcdcdc;     //边框颜色
@25mainWordColor:#252525;   //文字主体颜色
@4aviceWordColor:#4a4a4a;   //文字副级颜色
@99minorWordColor:#999999;  //文字次要颜色


.w_h(@w_h){
  width: @w_h ;
  height: @w_h ;
}


.hover(@color){
  &:hover{
    background-color: @color;
    color: #FFFFFF;
    text-shadow: 1px 3px 3px rgba(0, 0, 0, 0.3);
    transition: all 1s cubic-bezier(0, 0.72, 0.35, 1.12);
  }
}

//文字溢出
//多行
.wordSpaceClamp(@number){
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp:@number;
  overflow: hidden;
}
//单行
.wordSpaceClamp{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}


.nav{
  width: @safeWidth;
  margin:20px auto;
  a{
    font-size: 16px;
    color: #4a4a4a;
  }
  :nth-child(1){
    padding-right: 15px;
    background: url("../publicImg/jiantou-you-hui@2x.png") no-repeat right;
    margin-right: 10px;
  }
}


main{
  .displayFlex;
  .flex-direction-row;
  .flex-justify-between;
  width: @safeWidth;
  margin: 10px auto;
  .productInfo{

    .displayFlex;
    .flex-direction-column;

    .productDetail{
      width: 720px;
      padding: 20px;
      border:1px solid @borderColor;
      border-radius: 4px;
      .displayFlex;
      .flex-direction-column;

      .productLogoText{

        .displayFlex;
        .flex-direction-row;
        .flex-align-items;
        .flex-justify-between;
        margin-bottom: 40px;

        .logo{
          .w_h(120px);
          //margin-right: 20px;
        }
        .text{
          .productName{
            font-size: 24px;
            color: @25mainWordColor;
            font-weight: normal;
            margin-bottom: 10px;
          }
          .loansType{
            .displayFlex;
            .flex-direction-row;
            margin-bottom: 10px;
            span{
              padding:0 17px;
              height: 28px;
              border: 1px solid @safeMainColor;
              border-radius: 4px ;
              color:@safeMainColor;
              margin-right: 14px;
              text-align: center;
              line-height: 28px;
            }
          }
          .star{
            .displayFlex;
            .flex-direction-row;
            p{
              font-size: 18px;
              color: @99minorWordColor;
              margin-right: 12px;
            }
            i{
              margin-right: 6px;
              width: 24px;
              height: 24px;
              img{
                width: 100%;

              }
            }
          }
        }
        button{
          width: 160px;
          height: 56px;
          background-color: @safeMainColor;
          color: white;
          font-size:18px;
          border-radius: 6px;
        }



      }

      .productMoneyLimitRoa {
        .displayFlex;
        .flex-direction-row;
        width: 100%;
        margin-bottom: 30px;
        .loansRoa,.loansLimit,.loansMoney{
          width: 230px;
          height: 74px;
          border-radius: 6px;
          border:1px solid @borderColor;
          margin-right: 14px;
          .displayFlex;
          .flex-direction-row;
          .flex-justify-align;
          img{
            width: 45px;
            height: 45px;
            display: block;
            margin-right: 10px;
          }
          .text{
            .displayFlex;
            .flex-direction-column;
            i{
              font-size: 18px;
              color: @25mainWordColor;

            }

          }

        }


      }

      .p{
        font-size: 18px;
        color: @25mainWordColor;
        height: 40px;
        width: 720px;
        background-color: #f6f6f6;
        border-radius: 4px;
        line-height: 40px;
        margin-bottom: 28px;
      }

      .requirement,.productInfo,.companyInfo{
        margin-bottom: 40px;
        p{
          font-size: 16px;
          color: @4aviceWordColor;
        }
        .title{
          font-size:18px;
          color: @safeMinorColor;
          margin-bottom: 5px;
        }


      }





    }
    .productGroupList{
      .displayFlex;
      .flex-direction-column;
      min-height: 509px;
      .noComment{
        width: 100%;
      }
      .groupPostTop{
        margin-top: 80px;
        margin-bottom: 40px;
        width: 760px;
        border-bottom: 1px solid #eeeeee;
        .displayFlex;
        .flex-justify-between;

        .groupPostTopPost{
          font-size: 16px;
          background-color:  @safeMinorColor;
          color: #ffffff;
          border-radius: 4px;
          width: 58px;
          height: 28px;
          text-align: center;
          line-height: 28px;
        }
        .groupPostTopPostMore{
          font-size: 18px;
          color: @25mainWordColor;
          padding-right: 20px;
          background: url("../publicImg/jiantou-you-lan@2x.png") no-repeat right;

          text-align: center;
          line-height: 33px;

        }
        p{
          font-size: 24px;
          color: @25mainWordColor;
        }
      }

      .groupListItem{


        .displayFlex;
        .flex-direction-column;
        border:1px solid @borderColor;
        padding: 24px 0 24px 24px;
        border-radius: 6px;
        cursor: pointer;
        margin-bottom: 20px;

        //用户信息
        .authorInfo{
          .displayFlex;
          .flex-direction-row;
          .flex-justify-between;
          .flex-align-items;
          margin-bottom: 10px;
          .info{
            .displayFlex;
            .flex-direction-row;
            .flex-align-items;
            img{
              display: block;
              .w_h(36px);
              margin-right: 20px;
              border-radius: 6px;
            }
            .infoText {
              .displayFlex;
              .flex-direction-row;
              .text {
                .userName {
                  font-size: 16px;
                  color: @25mainWordColor;
                  padding-right: 30px;
                  display: table-cell;
                }
                time {
                  font-size: 12px;
                  color: @99minorWordColor;
                }

              }

            }
          }

          .todo{
            margin-right: 24px;
            .displayFlex;
            .flex-direction-row;
            .flex-align-items;
            .adminDelAll,.adminDelThis{
              font-size: 12px;
              color: @99minorWordColor;
              margin-right: 24px;
              display: none;
            }
           .userComment{
              width: 48px;
              height: 24px;
              display: block;
              color: @safeMainColor;
              border:1px solid @safeMainColor;
              border-radius: 4px;
              .hover(@safeMainColor);
              text-align: center;
            }
          }

        }
        //帖子内容
        .postContent{
          margin-left: 55px;
          width: 635px;
          .postTitle {
            font-size: 18px;
            color: @25mainWordColor;
            margin-bottom: 10px;
            .displayFlex;

            &:hover {
              text-decoration: underline;
            }

          }
          .userText {
            font-size: 16px;
            color: @4aviceWordColor;
            display: inline;
            a {
              font-size: 14px;
              color: @safeMinorColor;
              padding-right: 7px;
              background: url("../publicImg/jiantou-you-hong@2x.png") no-repeat right;
              background-size: 6px 12px;
              display: inline;

              &:hover {
                text-decoration: underline;
              }

            }
          }
          .adminText {
            .displayFlex;
            .flex-direction-row;

            .adminCoverImgBox{
              width: 218px;
              height: 144px;
              border-radius: 6px;
              margin-right: 12px;
              position: relative;
              overflow: hidden;
              img {
                position: absolute;
                left: 50%;
                top: 50%;
                -webkit-transform: translate(-50%, -50%);
                -moz-transform: translate(-50%, -50%);
                -ms-transform: translate(-50%, -50%);
                -o-transform: translate(-50%, -50%);
                transform: translate(-50%, -50%);
              }
            }
            p {
              width: 420px;
              word-break: break-all;
            }


          }
          .text{
            a {
              font-size: 14px;
              color: @safeMinorColor;
              padding-right: 7px;
              background: url("../publicImg/jiantou-you-hong@2x.png") no-repeat right;
              background-size: 6px 12px;
              display: inline;

              &:hover {
                text-decoration: underline;
              }

            }
          }


        }
        //用户图片
        .postImg{
          margin-left: 55px;
          width: 635px;
          margin-top: 20px;
          .imgList{
            .displayFlex;
            .flex-direction-row;
            li{
              margin-right: 10px;
              position: relative;
              overflow: hidden;
              .w_h(140px);
              border-radius: 6px;

              img{

                position: absolute;
                left: 50%;
                top: 50%;
                -webkit-transform: translate(-50%, -50%);
                -moz-transform: translate(-50%, -50%);
                -ms-transform: translate(-50%, -50%);
                -o-transform: translate(-50%, -50%);
                transform: translate(-50%, -50%);

              }
            }
          }


        }

        //帖子交互信息
        .postInfo{
          .displayFlex;
          .flex-direction-row;
          margin-top: 20px;
          margin-left: 55px;
          position: relative;

          span{
            padding-left:20px ;
            color: @99minorWordColor;
            font-size: 14px;
            margin-right: 16px;
          }
          span:nth-child(1){
            background: url("../publicImg/shequ-dianzan@2x.png") no-repeat left;
            background-size: 16px 16px;
          }
          span:nth-child(2){
            background: url("../publicImg/shequ-liulan@2x.png") no-repeat left;
            background-size: 16px 16px;
          }
          span:nth-child(3){
            background: url("../publicImg/shequ-pinglun@2x.png") no-repeat left;
            background-size: 16px 16px;
          }


          .groupName {
            font-size: 14px;
            color: @safeMinorColor;
            margin-right: 30px;
            position: absolute;
            top: 0;
            right: 0;
            visibility: hidden;

            &:hover {
              text-decoration: underline;
            }

          }

        }



      }
    }


  }

  .rightBox{

    .displayFlex;
    .flex-direction-column;
    width: 312px;
    .rightNewProduct{
      width: 290px;
      height: 715px;
      border: 1px solid @borderColor;
      border-radius: 6px;
      padding: 0 10px;
      .toNewLoans{
        display: block;
        height: 50px;
        width: 100%;
        font-size: 24px;
        line-height: 50px;
        text-align: left;
        background: white url("../publicImg/jiantou-you-lan@2x.png") no-repeat right;
        background-size: 10px 17px;
        border-bottom: 1px solid #eeeeee;
        color: @25mainWordColor;
        margin-bottom: 37px;

      }

      .NewLoansProductList{

        .loansItem{
          .displayFlex;
          .flex-align-items;
          .flex-direction-row;
          margin-bottom: 30px;
          .loansLogo{
            display: block;

            .w_h(72px);
            border-radius: 6px;


          }
          .loanInfo{
            .displayFlex;
            .flex-align-items;
            .flex-direction-row;
            .flex-justify-between;
            width: 210px;
            margin-left: 10px;

            .loanInfoLeft{
              h3{
                font-size: 18px;
                color: @25mainWordColor;
                line-height: 35px;
                font-weight: normal;
              }
              p{
                font-size: 14px;
                color: @4aviceWordColor;
                i{
                  color: @safeMinorColor;
                }
              }
            }
            .loanInfoRight{
              p{
                font-size: 16px;
                color: @99minorWordColor;
                margin-bottom: 15px;
              }
              a{
                display: block;
                width:58px ;
                height: 36px;
                color: white;
                background-color: @safeMinorColor;
                text-align: center;
                line-height: 36px;
                border-radius: 6px;
                margin-top: 36px;
                font-size: 18px;
              }
            }




          }

        }
      }

    }
    .hotLoanInnerRightBox{
      border:1px solid @borderColor;
      border-radius: 6px;
      display: block;
      width: 310px;
      background-color: white;


      .toHotLoans{
        display: block;
        height: 53px;
        width: 290px;
        margin: 0 auto;
        font-size: 24px;
        line-height: 53px;
        text-align: left;
        background: white url("../publicImg/jiantou-you-lan@2x.png") no-repeat right;
        background-size: 10px 17px;
        border-bottom: 1px solid #eeeeee;
        color: @25mainWordColor;
        margin-bottom: 30px;

      }
      .postItem{
        margin-bottom: 40px;
        padding:0 10px;
        .displayFlex;
        .flex-direction-row;
        .imgbox{
          width: 70px;
          height: 70px;
          border-radius: 6px;
          margin-right: 16px;
          overflow: hidden;
          position: relative;
          img {
            width: 100%;
            position: absolute;
            left: 50%;
            top: 50%;
            -webkit-transform: translate(-50%, -50%);
            -moz-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            -o-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
          }
        }
        .postItemText{
          h4{
            font-size: 18px;
            width: 200px;
            color: @25mainWordColor;
            font-weight: normal;
            .wordSpaceClamp(2);
            letter-spacing: -1px;
          }
          .thumbsUpAndPageView{
            span{
              font-size: 14px;
              color:@99minorWordColor;
              padding-left:25px;
            }
            .thumbsUp{
              background: url("../publicImg/shequ-dianzan@2x.png") no-repeat left;
              background-size: 16px 16px;
              margin-right: 30px;

            }
            .pageView{
              background: url("../publicImg/shequ-liulan@2x.png") no-repeat left;
              background-size: 16px 16px;
            }
          }
        }

      }
      a:last-child{
        margin-bottom: 0px;
      }

    }
    position: relative;
    .fixRight{
      position: fixed;
      top: 75px;
      right: 11%;

    }

    .positionBottom{
      position: absolute;
      left: 0;
      bottom: 100px;
    }

  }


}





